]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st: Annotate getters/setters
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 23 Jan 2025 22:08:51 +0000 (23:08 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 12 Feb 2025 13:11:11 +0000 (13:11 +0000)
Some properties have getters and setters that don't follow the
usual naming scheme, and they are therefore not recognized
automatically. Annotate the properties so that g-ir-scanner
picks up the methods.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3620>

src/st/st-scroll-view.c
src/st/st-widget.c

index 1abb4fc8637dd38decb6fb63e7f86e9d62581ddd..dbd631df5b1f3287081ca03c38c3fe6f02be6a5b 100644 (file)
@@ -924,7 +924,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
                           ST_PARAM_READABLE);
 
   /**
-   * StScrollView:enable-mouse-scrolling:
+   * StScrollView:enable-mouse-scrolling: (getter get_mouse_scrolling) (setter set_mouse_scrolling):
    *
    * Whether to enable automatic mouse wheel scrolling.
    */
index 95fcabfb5aa5703d105142bfd01ba786010a76cf..0b727ac478578ff96895dc71fde7e9db06742e6f 100644 (file)
@@ -893,7 +893,7 @@ st_widget_class_init (StWidgetClass *klass)
   klass->get_focus_chain = st_widget_real_get_focus_chain;
 
   /**
-   * StWidget:pseudo-class:
+   * StWidget:pseudo-class: (getter get_style_pseudo_class) (setter set_style_pseudo_class):
    *
    * The pseudo-class of the actor. Typical values include "hover", "active",
    * "focus".
@@ -904,7 +904,7 @@ st_widget_class_init (StWidgetClass *klass)
                          ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * StWidget:style-class:
+   * StWidget:style-class: (getter get_style_class_name) (setter set_style_class_name):
    *
    * The style-class of the actor for use in styling.
    */